package com.lyc.dao;

import com.lyc.pojo.Address;

import java.util.List;

public interface AddressDao {
    //地址添加
    public int addAddress(Address address);

    //地址修改
    public int updateAddress(Address address);

    //地址删除
    public int deleteAddress(Integer aid);

    //查询当前用户所有地址
    public List<Address> selectAddress(Integer uid);

    //查询指定地址
    public Address selectone(Integer aid);

    /*后台代码*/
    public List<Address> selectAll();
}
